package com.funny.test.factorybean;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author fanxiao  2021/11/23
 * @since 1.0.0
 */
@Slf4j
public class ToolFactory implements FactoryBean<Tool> {

	@Override
	public Tool getObject() throws Exception {
		return new Tool(1L);
	}

	@Override
	public Class<?> getObjectType() {
		return Tool.class;
	}
}
